package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.member.domain.UserInfo;

import java.util.List;

public interface ITravelCommentService {

    TravelComment saveOrUpdate(TravelComment detail, UserInfo userInfo);

    /**
     * 查询评论
     *
     * @param id 游记编号
     * @return
     */
    List<TravelComment> queryById(Long id);

    /**
     * 查询 楼数
     *
     * @param travelId
     * @return
     */
    long countFloor(Long travelId);

    /**
     * 根据用户id查询点评
     * @param uid
     * @return
     */
    List<TravelComment> queryByUserId(Long uid);
}
